import request from '@/utils/request'

const UPLOAD_ACTION = '/profilestorageself/upload'

export default {
  action() {
    return UPLOAD_ACTION
  },

  getList(args) {
    return request.doGet('/profilestorageself/getList', args)
  },

  getById(args) {
    return request.doGet('/profilestorageself/getById', args)
  },

  add(args) {
    return request.doPost('/profilestorageself/add', args)
  },

  edit(args) {
    return request.doPost('/profilestorageself/edit', args)
  },

  deleteById(args) {
    return request.doGet('/profilestorageself/deleteById', args)
  },

  downlaod(args) {
    return request.doDownload('/profilestorageself/download', args)
  }
}
